package com.example.mydesignmodule.adapter;

/**
 * @author tgw
 * @date 2021/1/21
 *
 * 适配器模式
 */
public class AdapterMainRun {

    public static void main(String[] args) {
        AudioMediaPlay audioMediaPlay = new AudioMediaPlay();
        audioMediaPlay.play(new Mp4());
        audioMediaPlay.play(new Mp3());
        audioMediaPlay.play("");
    }
}
